package xq.demo.xml;

// 演示配置信息
public class Config {
	private String name;
	private int minSize;
	private int maxSize;
	private boolean writable;
	private String minSizeDesc;
	private String maxSizeDesc;
	private String writableDesc;
	
	public Config() {
		minSizeDesc = "文件的长度下限（字节），低于此值发出警告";
		maxSizeDesc = "文件的长度上限（字节），高于此值发出警告";
		writableDesc = "是否允许写入";
	}
	public Config(String name) {
		this.name = name;
		// 设置默认值
		minSizeDesc = "文件的长度下限（字节），低于此值发出警告";
		minSize = 512;
		maxSizeDesc = "文件的长度上限（字节），高于此值发出警告";
		maxSize = 128*1024;
		writableDesc = "是否允许写入";
		writable = true;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getMinSize() {
		return minSize;
	}
	public void setMinSize(int minSize) {
		this.minSize = minSize;
	}
	public int getMaxSize() {
		return maxSize;
	}
	public void setMaxSize(int maxSize) {
		this.maxSize = maxSize;
	}
	public boolean isWritable() {
		return writable;
	}
	public void setWritable(boolean writable) {
		this.writable = writable;
	}
	public String getMinSizeDesc() {
		return minSizeDesc;
	}
	public void setMinSizeDesc(String minSizeDesc) {
		this.minSizeDesc = minSizeDesc;
	}
	public String getMaxSizeDesc() {
		return maxSizeDesc;
	}
	public void setMaxSizeDesc(String maxSizeDesc) {
		this.maxSizeDesc = maxSizeDesc;
	}
	public String getWritableDesc() {
		return writableDesc;
	}
	public void setWritableDesc(String writableDesc) {
		this.writableDesc = writableDesc;
	}
}
